<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/head.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><html:text name="sys.name" /></title>
<script type="text/javascript" src="<%=WEBPATH%>/scripts/AjaxTip.js"></script>
</head>
<body>
<html:form action="/crm/bxd/save.crm" id="saveForm">
	<html:token />
	<html:hidden id="bxd.id" name="bxd.id" />
	<table class="input-table" cellspacing="0" cellpadding="0" border="0"
		align="center">
		<tr>
			<td colspan="4" class="x-panel-header" style="text-align: center;"><html:text
				name="bxd.action" /></td>
		</tr>
		<html:if test="myMessage!=null">
			<tr>
				<td colspan="4" style="text-align: center;"><html:property
					value="myMessage" escape="false" /></td>
			</tr>
		</html:if>
		<tr>
			<td colspan="4" style="text-align: center;"><input type="button"
				onclick="javascript:saveFunction();" id="saveButton"
				value=" <html:text name="button.save"/> ">&nbsp;<input
				type="button" onclick="javascript:backFunction();" id="backButton"
				value=" <html:text name="button.back"/> "></td>
		</tr>
		<tr>
			<td colspan="4">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td><html:text name="bxd.jxDate"></html:text></td>
					<td class="td-input"><html:date id="birthDay"
						name="bxd.jxDate" format="yyyy-MM-dd" /><html:textfield
						dataType="date" id="bxd.jxDate" name="bxd.jxDate"
						value="%{birthDay}" readonly="true" />&nbsp;<img
						style="border: 0px;" src="<%=WEBPATH%>/images/calendar.gif"
						onclick="WdatePicker({dateFmt:'yyyy-MM-dd',  el:'bxd.jxDate'})"></td>
					<td><html:text name="bxd.jdDate"></html:text></td>
					<td class="td-input"><html:date id="birthDay"
						name="bxd.jdDate" format="yyyy-MM-dd" /><html:textfield
						dataType="date" id="bxd.jdDate" name="bxd.jdDate"
						value="%{birthDay}" readonly="true" />&nbsp;<img
						style="border: 0px;" src="<%=WEBPATH%>/images/calendar.gif"
						onclick="WdatePicker({dateFmt:'yyyy-MM-dd',  el:'bxd.jdDate'})"></td>
				</tr>
				<tr>
					<td><html:text name="bxd.jxr">
					</html:text></td> 
					<td class="td-input"><html:textfield dataType="string" dataLength="31" onblur="javascript:setValue();" id="bxd.jxr1" name="bxd.jxr1" value="#{jxr}"></html:textfield>
					<div  id="jxrTip"  style="height:12px;position:absolute;width:132px;border:1px solid #CCCCCC;background-Color:#fff;display:none;" ></div><html:hidden dataType="string"
						id="bxd.jxr" name="bxd.jxr"/></td>
					<td><html:text name="bxd.gcs">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="bxd.gcs" name="bxd.gcs"></html:textfield></td>
				</tr>
				<tr>
					<td><html:text name="bxd.state">
					</html:text></td>
					<td class="td-input" colspan="3"><html:select emptyOption="true"
						list="#{'已保存':'已保存','已提交':'已提交'}"  dataType="string" id="bxd.state"
						name="bxd.state"></html:select></td>
				</tr>
				<tr>
				<td colspan="4" style="text-align: left;" class="x-panel-header">客户信息
				</td>
				</tr>
				<tr>
					<td><html:text name="bxd.clientName">
					</html:text></td>
					<td class="td-input" colspan="3"><html:textfield dataType="string" cssStyle="width:78%;"
						id="bxd.clientName" name="bxd.clientName"></html:textfield></td>
				</tr>
				<tr>
					<td><html:text name="bxd.lxr">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="bxd.lxr" name="bxd.lxr"></html:textfield></td>
					<td><html:text name="bxd.lxdh">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="bxd.lxdh" name="bxd.lxdh"></html:textfield></td>
				</tr>
				<tr>
					<td><html:text name="bxd.email">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="bxd.email" name="bxd.email"></html:textfield></td>
					<td><html:text name="bxd.address">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="bxd.address" name="bxd.address"></html:textfield></td>
				</tr>
				<tr>
					<td><html:text name="bxd.fax">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="bxd.fax" name="bxd.fax"></html:textfield></td>
					<td><html:text name="bxd.postNumber">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="bxd.postNumber" name="bxd.postNumber"></html:textfield></td>
				</tr>
				<tr>
					<td><html:text name="bxd.remark">
					</html:text></td>
					<td class="td-input" colspan="3"><html:textarea dataType="string" cols="87" rows="5"
						id="bxd.remark" name="bxd.remark"></html:textarea></td> 
				</tr>
				<tr>
				<td colspan="4" style="text-align: left;" class="x-panel-header">报修产品信息
				</td>
				</tr>
				<tr>  
					<td><html:text name="bxdProduct.productName"><html:hidden id="bxd.bxdProduct.bxdId" name="bxd.bxdProduct.bxdId"/>
					</html:text></td>
					<td class="td-input" colspan="3"><html:textfield dataType="string"
						id="bxd.bxdProduct.productName" name="bxd.bxdProduct.productName" cssStyle="width:78%;"></html:textfield></td>
				</tr>
				<tr>
					<td><html:text name="bxdProduct.productGg">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="bxd.bxdProduct.productGg" name="bxd.bxdProduct.productGg"></html:textfield></td>
					<td><html:text name="bxdProduct.productXh">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="bxd.bxdProduct.productXh" name="bxd.bxdProduct.productXh"></html:textfield></td>
				</tr>
				<tr>
					<td><html:text name="bxdProduct.productSerialNum">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="bxd.bxdProduct.productSerialNum"
						name="bxd.bxdProduct.productSerialNum"></html:textfield></td>
					<td><html:text name="bxdProduct.productRemark">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="bxd.bxdProduct.productRemark" name="bxd.bxdProduct.productRemark"></html:textfield></td>
				</tr>
				<tr>
					<td><html:text name="bxdProduct.bxAddress">
					</html:text></td>
					<td class="td-input" colspan="3"><html:textfield dataType="string"
						id="bxd.bxdProduct.bxAddress" name="bxd.bxdProduct.bxAddress" cssStyle="width:78%;"></html:textfield></td>
				</tr>
				<tr>
					<td><html:text name="bxdProduct.bxState">
					</html:text></td>
					<td class="td-input"><html:textfield dataType="string"
						id="bxd.bxdProduct.bxState" name="bxd.bxdProduct.bxState"></html:textfield></td>
					<td><html:text name="bxdProduct.hasFj">
					</html:text></td>
					<td class="td-input"><html:checkbox id="bxd.bxdProduct.hasFj" name="bxd.bxdProduct.hasFj"/></td>
				</tr>
				<tr>
					<td><html:text name="bxdProduct.annex">
					</html:text></td>
					<td class="td-input" colspan="3"><html:textarea dataType="string" cols="87" rows="5"
						id="bxd.bxdProduct.annex" name="bxd.bxdProduct.annex"></html:textarea></td>
				</tr>
				<tr>
					<td><html:text name="bxdProduct.otherAnnex">
					</html:text></td>
					<td class="td-input" colspan="3"><html:textarea dataType="string" cols="87" rows="5"
						id="bxd.bxdProduct.otherAnnex" name="bxd.bxdProduct.otherAnnex"></html:textarea></td>
				</tr>
				<tr>
					<td><html:text name="bxdProduct.bj">
					</html:text></td>
					<td class="td-input" colspan="3"><html:textarea dataType="string" cols="87" rows="5"
						id="bxd.bxdProduct.bj" name="bxd.bxdProduct.bj"></html:textarea></td>
				</tr>
				<tr>
					<td><html:text name="bxdProduct.gzfx">
					</html:text></td>
					<td class="td-input" colspan="3"><html:textarea dataType="string" cols="87" rows="5"
						id="bxd.bxdProduct.gzfx" name="bxd.bxdProduct.gzfx"></html:textarea></td>
				</tr>
				<tr>
					<td><html:text name="bxdProduct.pcgc">
					</html:text></td>
					<td class="td-input" colspan="3"><html:textarea dataType="string" cols="87" rows="5"
						id="bxd.bxdProduct.pcgc" name="bxd.bxdProduct.pcgc"></html:textarea></td>
				</tr> 
				<html:if test='extendCustomer!=null&&extendCustomer!=""'>
					<tr>
						<td colspan="4" class="td-input"><br></br>
						<b><html:text name="entity.customauto"></html:text></b>
						<hr style="width: 100%;"></hr>
						</td>
					</tr>
					<html:property value="extendCustomer" escape="false" />
				</html:if>
			</table>
			</td>
			<%
				com.opensymphony.xwork2.util.ValueStack obj = (com.opensymphony.xwork2.util.ValueStack) request
							.getAttribute("struts.valueStack");
					obj.setValue("bxd", null);
			%>
		</tr>

	</table>
	<script type="text/javascript" language="javascript">
		//var provCity = new ProvCity(); 
		//provCity.init('','');  
		function getJxr(){
			var obj="bxd.jxr1";
			var tip="jxrTip";
			var target="bxd.jxr";
			ajaxTip.setObj(obj);
			ajaxTip.setTarget(target);
			ajaxTip.setUrl(url);
			ajaxTip.setTip(tip);
			ajaxTip.init();
			ajaxTip.setValue();
		}
		function backFunction(){
			window.location="<%=WEBPATH%>/crm/bxd/index.crm";
		}
		function onclickProduct(){
		}
	</script>
</html:form>
</body>
</html>